package com.vacation.vacationdemo.service.impl;

import com.vacation.vacationdemo.entity.Dept;
import com.vacation.vacationdemo.mapper.DeptMapper;
import com.vacation.vacationdemo.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨光
 * @date 2022年03月10日 15:21
 */
@Service
public class DeptServiceImpl implements DeptService {

    @Autowired
    private DeptMapper deptMapper;

    @Override
    public List<Dept> selectAllDepts() {
        return deptMapper.selectAllDepts();
    }
}
